import { Injectable } from '@angular/core';
import { Subject ,  Observable } from 'rxjs';

@Injectable()
export class PromptService {
  private promptSubject = new Subject<any>();
  constructor() { }
  sendPrompt(msg:any){
    this.promptSubject.next(msg)
  }
  getPrompt():Observable<any>{
    return this.promptSubject.asObservable();
  }
}
